package com.example.service.impl;

import com.example.dao.UserDao;
import com.example.domain.User;
import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User selectbyphone(String phone) {
        return userDao.selectbyphone(phone);
    }

    @Override
    public void savephone(User user) {
        userDao.savephone(user);
    }
}
